# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=fdupes
pkgver=2.3.0
pkgrel=0
pkgdesc="identifying or deleting duplicate files residing within specified directories"
url="https://github.com/adrianlopezroche/fdupes"
arch="all"
license="MIT"
makedepends="ncurses-dev pcre2-dev sqlite-dev"
subpackages="$pkgname-doc"
source="https://github.com/adrianlopezroche/fdupes/releases/download/v$pkgver/fdupes-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" PREFIX="/usr" install
}

sha512sums="
7801538b84797af94a5e9300cf5605b775380b7eef05ea1f70a5c6a2521d09c66dc6f310316a062c241fcf2086def52dc24be42a336c4bcc8a450f8578d310fc  fdupes-2.3.0.tar.gz
"
